﻿@using XStudio.XCRF.Web.Models.LabCheck
@model LabCheckWithStd
<table>
    <tr>
        <th>红细胞（RBC）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.RBC < Model.labCheckStd.RBCmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.RBC)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.RBC > Model.labCheckStd.RBCmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.RBC)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.RBC)</td>
            }
        }
        <td>×10^12/L</td>
    </tr>
    <tr>
        <th>血小板（PLT）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.PLT < Model.labCheckStd.PLTmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.PLT)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.PLT > Model.labCheckStd.PLTmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.PLT)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.PLT)</td>
            }
        }
        <td>×10^9/L</td>
    </tr>
    <tr>
        <th>血红蛋白（Hb）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.Hb < Model.labCheckStd.Hbmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.Hb)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.Hb > Model.labCheckStd.Hbmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.Hb)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.Hb)</td>
            }
        }
        <td>g/L</td>
    </tr>
    <tr>
        <th>白细胞（WBC）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.WBC < Model.labCheckStd.WBCmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.WBC)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.WBC > Model.labCheckStd.WBCmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.WBC)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.WBC)</td>
            }
        }
        <td>×10^9/L</td>
    </tr>
    <tr>
        <th>中性粒细胞（NEU）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.NEU < Model.labCheckStd.NEUmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.NEU)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.NEU > Model.labCheckStd.NEUmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.NEU)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.NEU)</td>
            }
        }
        <td>%</td>
    </tr>
    <tr>
        <th>淋巴细胞（LYM）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.LYM < Model.labCheckStd.LYMmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.LYM)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.LYM > Model.labCheckStd.LYMmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.LYM)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.LYM)</td>
            }
        }
        <td>%</td>
    </tr>
      <tr>
        <th>单核细胞（MNC）</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.MNC < Model.labCheckStd.MNCmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.MNC)↓</td>
            }
            else if (Model.labCheckStd != null &&  (Model.labCheck.MNC > Model.labCheckStd.MNCmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.MNC)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.MNC)</td>
            }
        }
        <td>%</td>
    </tr>
</table>